﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WMH_Project
{
   static class Logger
    {

       public static void WriteLine(String str)
       {
           file.WriteLine(str);
          // Console.WriteLine(str);
           file.Flush();
       }
       public static void die(String str)
       {
           file.WriteLine(str);
          // Console.WriteLine(str);
           file.Flush();
           Environment.Exit(-1);
       }

       static System.IO.StreamWriter file = new System.IO.StreamWriter("log.txt", false);
    }


}
